a47a81d9ae40608c62e5b01f971acb06edc07ca1,impl/src/main/java/org/glassfish/soteria/cdi/CdiExtension.java,CdiExtension,processBean,#ProcessBean#BeanManager#,93
Before Change
if (optionalFormMechanism.isPresent()) {
authenticationMechanismBean = new CdiProducer<HttpAuthenticationMechanism>()
.scope(ApplicationScoped.class)
.types(HttpAuthenticationMechanism.class)
.addToId(FormAuthenticationMechanismDefinition.class)
.create(e ->
CDI.current()
.select(FormAuthenticationMechanism.class)
After Change
if (optionalFormMechanism.isPresent()) {
authenticationMechanismBean = new CdiProducer<HttpAuthenticationMechanism>()
.scope(ApplicationScoped.class)
.beanClass(HttpAuthenticationMechanism.class)
.types(Object.class, HttpAuthenticationMechanism.class)
.addToId(FormAuthenticationMechanismDefinition.class)
.create(e -> {
FormAuthenticationMechanism formAuthenticationMechanism = CDI.current()
.select(FormAuthenticationMechanism.class)